package com.zj.fx.model.auto;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.date.DateUtil;

import java.util.Date;

public class AutoOriimportRecord implements Serializable{
private static final long serialVersionUID=1L;

    
    @ApiModelProperty(value = "主键id")
    private String id;
            @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "导入时间")
    private Date importTime;
        
    @ApiModelProperty(value = "导入数据总数")
    private String totalCount;
        
    @ApiModelProperty(value = "导入成功条数")
    private String successCount;
        
    @ApiModelProperty(value = "导入失败条数")
    private String failCount;

    private String importTimeStr;

    
        @JsonProperty("id")
    public String getId(){
            return id;
            }

    public void setId(String id) {
            this.id =  id;
            }
            @JsonProperty("importTime")
    public Date getImportTime(){
            return importTime;
            }

    public void setImportTime(Date importTime) {
            this.importTime =  importTime;
            }
            @JsonProperty("totalCount")
    public String getTotalCount(){
            return totalCount;
            }

    public void setTotalCount(String totalCount) {
            this.totalCount =  totalCount;
            }
            @JsonProperty("successCount")
    public String getSuccessCount(){
            return successCount;
            }

    public void setSuccessCount(String successCount) {
            this.successCount =  successCount;
            }
            @JsonProperty("failCount")
    public String getFailCount(){
            return failCount;
            }

    public void setFailCount(String failCount) {
            this.failCount =  failCount;
            }

    public String getImportTimeStr() {
        return importTimeStr;
    }

    public void setImportTimeStr(String importTimeStr) {
        this.importTimeStr = importTimeStr;
    }

    public AutoOriimportRecord(String id, Date importTime, String totalCount, String successCount, String failCount){
    
            this.id = id;
    
            this.importTime = importTime;
    
            this.totalCount = totalCount;
    
            this.successCount = successCount;
    
            this.failCount = failCount;
    
        }

public AutoOriimportRecord(){
        super();
        }

public String dateToStringConvert(Date date) {
        if(date!=null) {
        return DateUtil.format(date, "yyyy-MM-dd HH:mm:ss");
        }
        return "";
        }


        }